/**
 * Description:用于存储解析XML文件的实体类
 * Company：济南东之林智能软件有限公司
 * @author lld
 * @version 1.0
 * */
package com.douyu.water.util;

import java.util.List;

public class XmlConfig 
{
  /**
   * 列数目
   * */
	private int columnNum;
  /**
   * 列名称
   * */
	private String[] columnName;
	/**
	 * 字段名称
	 * */
	private String[] fieldName;
	/**
	 * 关联列号
	 * */
	private int[] refindex;
	/**
	 * 关联条件
	 * */
	private String[] refcon;
	/**
	 * 单元格数据类型
	 * */
	private String[] cellType;
	
	public String[] getCellType() {
		return cellType;
	}
	public void setCellType(String[] cellType) {
		this.cellType = cellType;
	}
	public int[] getRefindex() {
		return refindex;
	}
	public void setRefindex(int[] refindex) {
		this.refindex = refindex;
	}
	public String[] getRefcon() {
		return refcon;
	}
	public void setRefcon(String[] refcon) {
		this.refcon = refcon;
	}
	public int getColumnNum() {
		return columnNum;
	}
	public void setColumnNum(int columnNum) {
		this.columnNum = columnNum;
	}
	public String[] getColumnName() {
		return columnName;
	}
	public void setColumnName(String[] columnName) {
		this.columnName = columnName;
	}
	public String[] getFieldName() {
		return fieldName;
	}
	public void setFieldName(String[] fieldName) {
		this.fieldName = fieldName;
	}
	
	public String toString()
	{
		StringBuffer temp = new StringBuffer();
		temp.append("XmlConfig[columnNum=" + this.columnNum +";");
		temp.append("columnName={");
		int i = columnName.length;
		for(int j = 0;j < i;j++)
		{
		    if(j == i - 1)
		    {
		    	temp.append(this.columnName[j] + "};");
		    }
		    else
		    {
		    	temp.append(this.columnName[j]+",");
		    }
			
		}
		i = this.fieldName.length;
		temp.append("fieldName={");
		for(int j = 0;j < i;j++)
		{
		    if(j == i - 1)
		    {
		    	temp.append(this.fieldName[j] + "};");
		    }
		    else
		    {
		    	temp.append(this.fieldName[j]+",");
		    }
			
		}
		temp.append("]");
		return temp.toString();
	}
}
